import request from '../utils/request';


export const PagingCategory = data => {
    return request({
        url: 'api/Goods/PagingCategory',
        method: 'post',
        data: data
    });
};
export const BuildTree = data => {
    return request({
        url: 'api/Goods/BuildTree',
        method: 'post',
        data: data
    });
};
export const AddCategory = data => {
    return request({
        url: 'api/Goods/AddCategory',
        method: 'post',
        data: data
    });
};
export const CategoryInfo = data => {
    return request({
        url: 'api/Goods/CategoryInfo',
        method: 'post',
        data: data
    });
};
export const UpdateCategory = data => {
    return request({
        url: 'api/Goods/UpdateCategory',
        method: 'post',
        data: data
    });
};
export const DeleteOneCategory = data => {
    return request({
        url: 'api/Goods/DeleteOneCategory',
        method: 'post',
        data: data
    });
};
export const DeleteMoreCategory = data => {
    return request({
        url: 'api/Goods/DeleteMoreCategory',
        method: 'post',
        data: data
    });
};